const express = require("express");
const router = express.Router();

const messages = require('./lib/controller/messages');
const index = require('./routes/index');
const register = require('./routes/register');
const header = require('./routes/header');
const login = require('./routes/login');
const user_content = require('./routes/user_content');
const addTopic = require('./routes/addTopic');
const show_topic = require('./routes/show_topic');
const my_topicList = require('./routes/my_topicList');

process.on('uncaughtException', function (err) {
  console.log(err);
})

router.use('/', messages);
router.use('/', index);
router.use('/user_content', user_content);
router.use('/register', register);
router.use('/login', login);
router.use('/addTopic', addTopic);
router.use('/show_topic', show_topic);
router.use('/my_topicList', my_topicList);
module.exports = router;